import request from '@/utils/request'

// 查询小区参数列表
export function listCommunityParam(query) {
  return request({
    url: '/property/communityParam/list',
    method: 'get',
    params: query
  })
}

// 查询小区参数详细
export function getCommunityParam(id) {
  return request({
    url: '/property/communityParam/' + id,
    method: 'get'
  })
}

// 新增小区参数
export function addCommunityParam(data) {
  return request({
    url: '/property/communityParam',
    method: 'post',
    data: data
  })
}

// 修改小区参数
export function updateCommunityParam(data) {
  return request({
    url: '/property/communityParam',
    method: 'put',
    data: data
  })
}

// 删除小区参数
export function delCommunityParam(id) {
  return request({
    url: '/property/communityParam/' + id,
    method: 'delete'
  })
}

// 导出小区参数
export function exportCommunityParam(query) {
  return request({
    url: '/property/communityParam/export',
    method: 'get',
    params: query
  })
}

// 新增or修改小区参数
export function saveOrUpdate(data) {
  return request({
    url: '/property/communityParam/saveOrUpdate',
    method: 'post',
    data: data
  })
}


